<?php
include_once("./_common.php");

$password = sql_password($pw);

mysql_query("set session character_set_connection=utf8;");
mysql_query("set session character_set_results=utf8;");
mysql_query("set session character_set_client=utf8;");

$sql = "SELECT * 
          FROM g5_member
         WHERE mb_id = '$id'
		   AND mb_password = '$password'";

$rst = sql_query($sql);

while($row = mysql_fetch_assoc($rst))
{
	$list[] = $row;
}

$result = "success<col>".$list[0]['mb_id']."<col>".$list[0]['mb_name']."<col>".$list[0]['mb_1']."<col>".$list[0]['mb_2']."<col>".$list[0]['mb_level']."<col>END";

if (count($list) == 1)
{
	echo($result);
}
else
{
	echo("1");
}
?>